package StudyCode.summary.mycollection;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ImmutableCollectionUsingCollectionOfMethod {
//	public static void main(String[] args){
//		List<String> jvmLanguages = List.of("Java", "Scala", "JRuby", "Groovy", "Jython", "Kotlin");
//		System.out.println(jvmLanguages);
//		try {
//			jvmLanguages.add("Exception");
//		} catch (UnsupportedOperationException uoe){
//			System.out.println(uoe);
//		}
//		Map<Integer, String> players = Map.of(1, "Ana Bates", 2, "Lady Mary", 3, "William Wang", 4, "Corus Nee");
//		System.out.println(players.values());
//		System.out.println("Player 2: " + players.get(2));
//
//	}

}
